import java.util.Random;

public class RandomNumberGenerator extends NumberGenerator{

  private Random random = new Random(); //乱数発生器
  private int number;                   //現在の数

  public int getNumber(){               //数の取得
    return number;
  } 

  public void execute() {
    
    for(int i = 0; i<20; i++){
      number = random.nextInt(50);
      notifyObservers();
    }
  }
}